package com.wicket.okrapp.integration.dto;

import com.wicket.okrapp.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Objects;

import lombok.Data;

/**
 * @desc TenantHolidayMenuDto
 * @使用场景
 */
@Data
public class TenantHolidayMenuDto extends BaseDto implements Serializable {

  /**
   * 周期类型ID
   */
  @ApiModelProperty("周期类型ID")
  private String cycleTypeId;

  /**
   * 周期类型标识
   */
  @ApiModelProperty("周期类型标识")
  private String cycleTypeCode;

  /**
   * 周期类型名称
   */
  @ApiModelProperty("周期类型名称")
  private String cycleTypeName;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    TenantHolidayMenuDto that = (TenantHolidayMenuDto) o;
    return (
      cycleTypeId == that.cycleTypeId &&
      cycleTypeCode == that.cycleTypeCode &&
      cycleTypeName == that.cycleTypeName
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(
      super.hashCode(),
      cycleTypeId,
      cycleTypeCode,
      cycleTypeName
    );
  }

}
